//
//  SEGNeihborhoodDetailViewModel.h
//  Commom
//
//  Created by 梁学彰 on 2020/6/17.
//

#import <Foundation/Foundation.h>
#import "SEGSharedNeihborhoodModel.h"
#import "SEGSharedNewManager.h"
#import "SEGHelpManager.h"
#import "SEGSHManager.h"
#import "SEGCommunitySocialManager.h"
 
@interface SEGNeihborhoodDetailViewModel : NSObject

@property (nonatomic, assign) SEGNeighbourhoodOperationType operationType;

@property (nonatomic, copy) NSString* objId;
@property (nonatomic, copy) NSString* objType;


@property (nonatomic, assign) BOOL showCommentView;
/**
 是否从集市进入
 */
@property (nonatomic, assign) BOOL isMarketEnter;

@property(nonatomic, weak) id<SEGNeihborhoodDetailDelegate> delegate;
/**
 在列表中的位置
 */
@property (nonatomic, assign) NSUInteger index;



/**
 网络请求管理对象
 */
@property (nonatomic, strong)SEGSharedNewManager *sharedNewManager;
@property (nonatomic, strong)SEGHelpManager *helpManager;
@property (nonatomic, strong)SEGSHManager *sHManager;
@property (nonatomic, strong)SEGCommunitySocialManager *socialManager;

@property (nonatomic, strong) NSIndexPath* selectedIndexPath;
/**
 选中的子评论中回复的第几条 -1表示子评论本身
 */
@property (nonatomic, assign) NSInteger selectChildIndex;

/**
 是否是自己发布的
 */
@property (nonatomic, assign) BOOL isMy;

/**
 集市内容
 */
@property (nonatomic, copy) NSString *marketContent;

/**
 发送的评论内容
 */
@property (nonatomic, copy) NSString *commentContent;

/**
 主体用户信息
 */
@property (nonatomic, strong)SEGSharedCommonUserModel *userModel;

/**
 页码
 */
@property (nonatomic, assign) NSUInteger pageNo;
/** cell高度缓存 */
@property (nonatomic, strong) NSMutableDictionary *cellHightDict;



@property (nonatomic, strong) RACCommand *detailInfoCommand;
@property (nonatomic, strong) RACCommand *requestQueryCommentsCommand;//请求评论列表
@property (nonatomic, strong) RACCommand *childCommentCellPraiseCommand;//子评论点赞
@property (nonatomic, strong) RACCommand *deleteCommentCommand;//删除自己的评论

@property (nonatomic, strong) RACCommand *praiseCommand;//点赞

@property (nonatomic, strong) RACCommand *sendCommentCommand;//发送评论

@property (nonatomic, strong) RACCommand *sellOutCommand;//已出手
@property (nonatomic, strong) RACCommand *deleteCommand;//删除

- (void)analyticsActionWithObjName:(NSString *)objName;

- (NSString *)seg_initShareParamsWithDic:(NSMutableDictionary *)params;
@end
 
